package com.haocang.szgm.ui.report.adapter;

import android.content.Context;

import com.haocang.szgm.R;
import com.haocang.szgm.ui.report.bean.PurificationPlantDayBean;
import com.haocang.commonlib.recyclerView.BaseAdapter;
import com.haocang.commonlib.recyclerView.BaseViewHolder;

/**
 * 创建时间：2019/3/5
 * 编 写 人：ShenC
 * 功能描述：
 */

public class PurificationPlanDayListAdapter extends BaseAdapter<PurificationPlantDayBean> {

    public PurificationPlanDayListAdapter(Context context) {
        super(context, R.layout.item_report_pp_day_list);
    }

    @Override
    public void convert(BaseViewHolder holder, PurificationPlantDayBean bean) {

        holder.setText(R.id.item_1, bean.getCreateDT())
                .setText(R.id.item_2, bean.getCreator());

        holder.addOnClickListener(R.id.item_lin);
    }

}